<main class="lyear-layout-content">

    <div class="container-fluid p-t-15">
        <div class="row">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
                <div class=" callout-success callout" style="padding: 0;">
                    <nav aria-label="breadcrumb">
                        <ol class="breadcrumb" style="padding: 1.25rem 1rem;background-color: white;">
                            <li class="breadcrumb-item"><a href="{:url('admin/post/cate')}">分类列表</a>
                            </li>
                            <li class="breadcrumb-item active" aria-current="page">分类修改</li>
                        </ol>
                    </nav>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-12">
                <div class="card">
                    <div class="card-header">
                        <div class="card-title">修改分类</div>
                    </div>
                    <div class="card-body">
                        <form action="" method="post">
                            <input type="hidden" name="id" value="{$cate.id}">

                            <div class="form-group col-lg-2">
                                <label for="name">分类名称</label>
                                <input type="text" class="form-control" id="name" name="name" value="{$cate.name}"
                                    placeholder="请输入分类名称">
                            </div>
                            <div class="form-group col-lg-2">
                                <label for="weigh">权重</label>
                                <input type="text" class="form-control" id="weigh" name="weigh" value="{$cate.weigh}">
                            </div>


                            <div class="form-group col-lg-4 row">
                                <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
                                    <label for="vercode">验证码</label>
                                    <input type="text" class="form-control" name="vercode" id="vercode"
                                        placeholder="请输入验证码">
                                </div>
                                <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12" style="position: relative;">
                                    <img id="vercode" src="/home/index/vercode.html" alt="captcha"
                                        onclick="this.src = `/home/index/vercode.html`" style="position: 
                                            absolute;bottom: 0;">
                                </div>

                            </div>

                            <div class="form-group col-lg-12">
                                <button type="submit" class="btn btn-primary">修改</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

</main>